﻿using Newtonsoft.Json;

namespace Discord.Response;

/// <summary>
/// 上传文件返回参数
/// </summary>
public class UploadResult
{
    [JsonProperty(PropertyName = "attachments")]
    public List<UploadData> AttachmentList { get; set; } = new();
}

public class UploadData
{
    [JsonProperty(PropertyName = "id")]
    public int Id { get; set; }

    [JsonProperty(PropertyName = "upload_url")]
    public string UploadUrl { get; set; } = "";

    [JsonProperty(PropertyName = "upload_filename")]
    public string UploadFileName { get; set; } = "";
}